package com.example.HaiDLaobackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class UserEntity {
	@TableId(type = IdType.AUTO)
	private Long id;
	private String username;
	private String password;
	private String nickname;
	private String avatarUrl;
	private String phone;
	private String memberLevel; // NONE, BRONZE, SILVER, GOLD, PLATINUM
	private Integer status; // 1:active 0:disabled
	private LocalDateTime createdAt;
	private LocalDateTime updatedAt;
}


